package com.zjn.servicea.service.third;

import com.zjn.entity.Contact;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author zaker
 * @program: signit_parent
 * @date 2021-04-01 11:13
 */
@FeignClient(name = "servicec", contextId ="ServiceCFeign")
public interface ServiceCFeign {

    /*
    * 查询联系信息
    * */
    @GetMapping("/findContactById")
    public Contact findContectById(@RequestBody Contact contact);

    /*
    * 创建联系信息
    * */
    @PostMapping("/createContact")
    public String createContact(@RequestBody Contact contact);
}
